package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbCrowdMember 群成员表

 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */

public class TbCrowdMember  implements Serializable {


	/**
	 * 主键id
	 */
	private String cmid;

	/**
	 * 用户id
	 */
	private String uid;

	/**
	 * 群id
	 */
	private String cid;

	/**
	 * 群昵称
	 */
	private String cname;

	/**
	 * 是否是管理员
	 */
	private Integer isAdmin;

	/**
	 * 是否禁止加群
	 */
	private Integer isBan;

	/**
	 * 用户名
	 */
	private String uname;

	/**
	 * 加群时间
	 */
	private Date addDate;

	public String getCmid() {
		return cmid;
	}

	public void setCmid(String cmid) {
		this.cmid = cmid;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public Integer getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(Integer isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Integer getIsBan() {
		return isBan;
	}

	public void setIsBan(Integer isBan) {
		this.isBan = isBan;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	@Override
	public String toString() {
		return "TbCrowdMember{" +
				"cmid='" + cmid + '\'' +
				", uid='" + uid + '\'' +
				", cid='" + cid + '\'' +
				", cname='" + cname + '\'' +
				", isAdmin=" + isAdmin +
				", isBan=" + isBan +
				", uname='" + uname + '\'' +
				", addDate=" + addDate +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCrowdMember)) {
			return false;
		}
		TbCrowdMember that = (TbCrowdMember) o;
		return Objects.equals(cmid, that.cmid) &&
				Objects.equals(uid, that.uid) &&
				Objects.equals(cid, that.cid) &&
				Objects.equals(cname, that.cname) &&
				Objects.equals(isAdmin, that.isAdmin) &&
				Objects.equals(isBan, that.isBan) &&
				Objects.equals(uname, that.uname) &&
				Objects.equals(addDate, that.addDate);
	}

	@Override
	public int hashCode() {
		return Objects.hash(cmid, uid, cid, cname, isAdmin, isBan, uname, addDate);
	}
}
